import request from "@/utils/request";
import defaultSettings from "@/settings";

//行号，行名查询行名行号表
export const IbpsBankCode = {
  queryUrl: `${defaultSettings.ctx.ibpsApp}/ibps/commonQuery/opBkSearchList `,
  exportUrl: `${defaultSettings.ctx.ibpsApp}/ibps/commonQuery/opBkSearchList `,
  delUrl: `${defaultSettings.ctx.ibpsApp}`,
};

// 通过行号查询银行信息
export function getBankInfByBankCode(bankCode) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/cnaps2/Cnaps2BankCode/check`,
    method: "get",
    params: {
      bankCode: bankCode,
    },
  });
}
